import Cookies from 'js-cookie'

const RoleKey = 'role_token'

export function getRole() {
  return Cookies.get(RoleKey)
}

export function setRole(token) {
  return Cookies.set(RoleKey, token,{expires:7})// 7天过期
}

export function removeRole() {
  return Cookies.remove(RoleKey)
}
